def gnch_i_enu1lator(second: int) -> list:
    list_signal = []
    for x in range(1,second+1):
        for y in range(x):
            list_signal.append(x)
            if len(list_signal) == second:
                break
        if len(list_signal) == second:
            break
    return list_signal

def gnch_i_enulator(second: int) -> list:
    list_signal = []
    index = 1
    while index != second+1:
        index_2 = 0
        while index_2 != index:
            list_signal.append(index)
            index_2 += 1
        index+=1
    print(list_signal)
    return list_signal


assert gnch_i_enulator(2) == [1,2]
assert gnch_i_enulator(5) == [1,2,2,3,3]
assert gnch_i_enulator(7) == [1,2,2,3,3]
